package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Comment;
import cn.wolfcode.trip.base.query.CommentQueryObject;

import java.util.List;

public interface CommentMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Comment record);

    Comment selectByPrimaryKey(Long id);

    List<Comment> selectAll();

    int updateByPrimaryKey(Comment record);

    List<Comment> selectAllByTravelId(CommentQueryObject qo);

    void insertTravelComment(Comment comment);

    int getCommentLikeNums(long commentId);

    int getCommentCountByTravel(long travelId);

    Comment selectCommentByPrimaryKey(Long id);

    List<Comment> selectUserTravelComment(Long userId);

    List<Comment> selectCommentMe(String AuthorNickName);

    List<Comment> selectNoCommentMe(String authorNickName);

    void updateCommentMe(Long CommentId);

    List<Comment> selectStrategyCommentByStrategyCommentId(Long strategyCommentId);

    List<Comment> selectStrategyCommentsByStrategyId(Long strategyId);

}